﻿<%@ Page Language="c#" CodeBehind="Listview.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.UnitiveDocument.Task.TaskListPage" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
  <title>Task List Page</title>
  <script language="javascript" type="text/javascript">
  //<!--
  function selectAll() {
    var list = document.getElementsByTagName("INPUT");
    for (var i = 0; i < list.length; i++) {
      var ctrl = list[i];
      if (ctrl.type === "checkbox") {
        ctrl.checked = true;
      }
    }
  }

  function unSelectAll() {
    var list = document.getElementsByTagName("INPUT");
    for (var i = 0; i < list.length; i++) {
      var ctrl = list[i];
      if (ctrl.type === "checkbox") {
        ctrl.checked = false;
      }
    }
  }
  //-->
  </script>
  <uds:Style runat="server" Href="~/css/BasicLayout.css" />
</head>
<body>
  <form id="Task" method="post" runat="server">
    <uds:PageTitle runat="server" HintImage="~/DataImages/help_page.gif" Title="我的项目">
      <input class="redButtonCss" onclick="selectAll()" type="button" value="全部选择">
      <input class="redButtonCss" onclick="unSelectAll()" type="button" value="全部取消">
    </uds:PageTitle>
    <div>
      <table cellspacing="0" cellpadding="0" border="0">
        <tr>
          <td class="selectedTab"><a href="../Task/Listview.aspx" class="Newbutton">我的参与</a></td>
          <td class="unselectedTab"><a href="../Subscription/Listview.aspx" class="Newbutton">我的关注</a></td>
        </tr>
      </table>
    </div>
    <uds:UDSDataGrid ID="dgMyTask" runat="server" OnPageIndexChanged="DataGrid_PageChanged">
      <Columns>
        <asp:TemplateColumn HeaderText="ID">
          <HeaderStyle HorizontalAlign="Center" Width="5%"></HeaderStyle>
          <ItemStyle HorizontalAlign="Center"></ItemStyle>
          <HeaderTemplate>
            ◎
          </HeaderTemplate>
          <ItemTemplate>
            <asp:CheckBox ID="ClassID" runat="server" />
          </ItemTemplate>
          <EditItemTemplate>
          </EditItemTemplate>
        </asp:TemplateColumn>
        <asp:HyperLinkColumn Text="任务名称" Target="_self" DataNavigateUrlField="ID" DataNavigateUrlFormatString="../Project.aspx?ClassID={0}" DataTextField="Name" HeaderText="项目名称">
          <HeaderStyle HorizontalAlign="Left" Width="25%"></HeaderStyle>
        </asp:HyperLinkColumn>
        <asp:BoundColumn DataField="FileCount" HeaderText="已归档">
          <HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
          <ItemStyle HorizontalAlign="Center"></ItemStyle>
        </asp:BoundColumn>
        <asp:BoundColumn DataField="Status" HeaderText="状态">
          <HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
          <ItemStyle HorizontalAlign="Center"></ItemStyle>
        </asp:BoundColumn>
        <asp:BoundColumn DataField="Scale" HeaderText="所占比例">
          <HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
          <ItemStyle HorizontalAlign="Center"></ItemStyle>
        </asp:BoundColumn>
        <asp:BoundColumn DataField="StartDate" HeaderText="起始日期">
          <HeaderStyle HorizontalAlign="Center" Width="20%"></HeaderStyle>
          <ItemStyle HorizontalAlign="Center"></ItemStyle>
        </asp:BoundColumn>
        <asp:BoundColumn DataField="EndDate" HeaderText="截止日期">
          <HeaderStyle HorizontalAlign="Center" Width="20%"></HeaderStyle>
          <ItemStyle HorizontalAlign="Center"></ItemStyle>
        </asp:BoundColumn>
      </Columns>
    </uds:UDSDataGrid>
  </form>
</body>
</html>
